<div class="modal-header">
    选择商户
    <span class="pull-right" ng-click="cancel()"><i class="fa fa-close base-color cursor-pointer"></i></span>
</div>
<div class="modal-body">
    <div class="row">
        <div class="col-xs-5">
            <div class="table-toolbar clearfix">
                <div class="input-bar">
                    <div class="input-group clearfix">
                        <input type="text" class="form-control" placeholder="请输入商户名称"
                               ng-model="condition.merchantName">
                        <span class="input-group-addon" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
        </div>
        <table class="col-xs-12 table table-fixed">
            <thead>
            <tr>
                <td width="40%">商户编号</td>
                <td width="40%">商户名称</td>
                <td width="20%">操作</td>
            </tr>
            </thead>
            <tbody>
            <tr ng-if="dataList.length == 0">
                <td colspan="3" class="text-center">暂时没有数据</td>
            </tr>
            <tr ng-repeat="item in dataList track by $index">
                <td class="spill-dots" title="{{item.merchantCode}}">{{item.merchantCode}}</td>
                <td class="spill-dots" title="{{item.merchantName}}">{{item.merchantName}}</td>
                <td class="text-center">
                    <button class="btn btn-operate" ng-click="ok($index)">选择</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<div class="modal-footer">
    <nav class="pull-right">
        <span class="pull-left input-sm">第{{pageInfo.curPage}}页/共{{pageInfo.totalPages}}页&emsp;</span>

        <form class="form-inline pull-left m-r-xs">
            <select class="form-control input-sm" ng-model="pageInfo.pageSize"
                    ng-change="changePageItems()">
                <option value="5">5/页</option>
                <option value="10">10/页</option>
            </select>
        </form>&emsp;
        <pagination total-items="pageInfo.totalRows" items-per-page="pageInfo.pageSize" previous-text="上一页"
                    next-text="下一页" ng-model="pageInfo.curPage" max-size="5" class="pagination-sm pull-right"
                    boundary-link-numbers="true" rotate="false" ng-change="pageChange()">
        </pagination>
    </nav>
</div>